<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        arr=[10,20,30,40,50];
        arr.push(60);
        arr.unshift(0);
        console.log(arr);
        arr.pop(60);
        arr.shift(0);
        console.log(arr);
        arr02=arr.slice(0,2);//slice不影响原数组
        console.log(arr02)// start,end,左闭右开
        arr.splice(1,0,15);
        console.log(arr);
        console.log(arr.join("#"))
    </script>
</body>
</html>